home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CAboutDialog.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.1 KB  |  51 lines  |  [TEXT/CWIE]

  1. // CAboutDialog.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. class LStream;
  8.  
  9. class LPushButton;
  10. class LStaticText;
  11.  
  12.  
  13. //----------
  14. class CAboutDialog : public LGADialog {
  15. public:    // these comprise the programming interface for using the dialog
  16.     static    CAboutDialog*        CreateAboutDialog        (LCommander*    inSuperCommander,
  17.                                                  CommandT        inCommand);
  18.  
  19. // these functions will be obsoleted
  20. // retained only for backwards compatibility
  21.  
  22. public:    // these comprise the implementation
  23.     enum { class_ID = 'Abog' };
  24.  
  25.                         CAboutDialog        (LStream*    inStream);
  26.     virtual                ~CAboutDialog();
  27.  
  28.     virtual void        ListenToMessage        (MessageT    inMessage,
  29.                                              void        *ioParam);
  30.  
  31.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  32.                                              void        *ioParam = nil);
  33.     virtual void        FindCommandStatus    (CommandT    inCommand,
  34.                                              Boolean    &outEnabled,
  35.                                              Boolean    &outUsesMark,
  36.                                              Char16        &outMark,
  37.                                              Str255        outName);
  38.  
  39. protected:
  40.     static    void        RegisterClass();
  41.     virtual void        FinishCreateSelf();
  42.     virtual void        DataChanged        (long        inDataID);
  43.  
  44. protected:
  45.     static Boolean        sIsRegistered;
  46.     CommandT            mCommand;
  47.  
  48.     LPushButton*        mOKButton;
  49.  
  50. };
  51.